package top.shiyiri.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author Aunean
 * @date 2022/2/26 21:13
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Emp implements Serializable {

    private Integer eid;
    private String empName;
    private Integer age;
    private String sex;
    private String email;
    private Integer did;

    //对一对应对象
    private Dept dept;

    public Emp(Integer eid, String empName, Integer age, String sex, String email, Integer did) {
        this.eid = eid;
        this.empName = empName;
        this.age = age;
        this.sex = sex;
        this.email = email;
        this.did = did;
    }
}
